package cn.tedu.medicalmanagementsystem.base.exception;

import cn.tedu.medicalmanagementsystem.base.response.StatusCode;
import lombok.Getter;

/**
 * 自定义的业务层异常类
 */
public class ServiceException extends RuntimeException {
    @Getter
    private StatusCode statusCode;

    //Alt+Insert
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
